package zyc.service.imple;

import zyc.dao.TeacherDao;
import zyc.dao.imple.TeacherDaoImple;
import zyc.pojo.Teacher;
import zyc.service.TeacherService;

/**
 * @description:
 * @author: Code-zyc
 * @date: Created in 2020/12/24 8:31
 * @version: v1.0
 * @modified By:
 */
public class TeacherServiceimple implements TeacherService {

    private TeacherDao teacherDao=new TeacherDaoImple();
    @Override
    public Teacher getTeacherByNamePass(String name,String password) {
        return teacherDao.getTeacherByNamePass(name,password);
    }

    @Override
    public Teacher getTeacherBytidPass(int tid, String password) {
        return teacherDao.getTeacherBytidPass(tid,password);
    }
}
